package com.yydream.common.exception;


import com.yydream.common.constant.HttpStatus;
import lombok.Data;

@Data
public class CustomException extends RuntimeException{

    private Integer code;
    private String msg;

    public CustomException(HttpStatus httpStatus) {
        this.code = httpStatus.getCode();
        this.msg = httpStatus.getMsg();
    }


}
